"Coin and Match Test" Start Room is a room. "You are in a plain old room wearing nothing but coin purse (and your clothes of course!). There is an exit to the North.". Second Room is north of Start Room. "Another plain room with an exit to the South.". The player is wearing a coin purse. understand "bag" or "coin bag" as coin purse. the coin purse is a closed openable container. the description is "a coin purse that looks like an oversized Segram's Crown Royal bag, with a picture of a golden coin on it.". money is a kind of thing. money has a number called quantity. the gold coins is money with quantity 6000. understand "bunch" as gold coins. the gold coins is a thing inside the purse. the indefinite article of the gold coins is "a quantity". the description is "Very valuable and made of gold! what else?". report opening the purse: now the purse is open; say "Inside the purse you can see [quantity of gold coins] coins."; stop the action. the TourGuide is a man in Start Room. the indefinite article of Tourguide is "the". understand "man" or "guide" as TourGuide. the description of the TourGuide is "He wants coins before he'll do anything for you.". check giving coins to the TourGuide: if the TourGuide is not in the location, say "There ain't no Tourguide here!" instead. instead of giving the gold coins to the TourGuide when the TourGuide is in Start Room and the player is in the Start Room: if the quantity of coins is 0 begin; say "you're out of coins."; stop the action; end if; [otherwise] decrease the quantity of gold coins by 1500; move the TourGuide to Second Room; say "You pay the Tourguide. He vanishes in a cloud of smoke. You have [quantity] gold coins left.". instead of giving the gold coins to the TourGuide when the player is in the Second Room and the Tourguide is in Second Room: if the quantity of coins is 0 begin; say "you're out of coins."; stop the action; end if; [otherwise] decrease the quantity of gold coins by 1500; move the TourGuide to Start Room; say "You pay the Tourguide. He vanishes in a cloud of smoke. You have [quantity] gold coins left.". paying is an action applying to one thing. understand "pay [something]" as paying. instead of paying the coins: try giving the coins to the Tourguide. instead of paying the Tourguide: if the TourGuide is not in location begin; say "The Tourguide ain't here!"; end if; [otherwise] try giving the coins to the TourGuide. a torch is in the start room. the description of the torch is "The torch is nothing more than a plain wooden club wrapped at one end with a bunch of rags and it is currently [if lit] lit [otherwise]not lit.". the torch can be either lit or not lit. the torch is not lit. understand "wooden" or "club" or "rags" as torch. instead of taking the matchbox: move the matchbox to the player; say "you've taken the box.". instead of taking the torch: move the torch to the player; say "You've now got the torch.". instead of inserting the torch into the matchbox: say "The torch won't fit!". a matchbox is in the start room. the matchbox is a closed openable container. the description of the matchbox is "This is a very colorful matchbox with a picture of a match on it.". understand "box" as matchbox. Report opening the matchbox: say "You open the matchbox. You count [quantity of the matches] matches inside."; stop the action. sticks is a kind of thing. sticks has a number called quantity. a match is a thing in the matchbox. the matches is a thing in the matchbox. the matches is scenery. the matches is sticks with quantity 3. the match can be either lit or not lit. the match is not lit. the description of the match is "This is a very colorful match which will last exactly 10 turns before burning out or you can extinguish it anytime before that. It is currently [if lit]lit [otherwise]unlit.". instead of counting the matches: say "You have [quantity] matches left.". instead of searching the matchbox: say "There are [quantity of the matches] matches left in the matchbox.". striking is an action applying to one thing. understand "strike [something]" or "ignite [something]" as striking. instead of burning the coin purse: say "You really really don't want to do that foolish act!". instead of burning the match: say "Try striking the match instead.". instead of striking the torch: say "The torch is not ignitable by itself.". check striking the match: if the match is not in the player, say "You ain't got the match.". check striking the match: if the match is lit, say "The match is already lit." instead. carry out striking the match: if the match is not lit, now the match is lit; say "You strike a match." instead. instead of inserting the match into the matchbox when the match is not lit: now the match is in the matchbox; increase the quantity of the matches by 1; say "you replace the unlit match back in the box.". instead of inserting the match into the matchbox when the match is lit: say "You burn yourself to death!"; end the game in death. before burning the torch: if the torch is lit, say "The torch is already lit." instead. check burning the torch: if the match is not lit, say "the match ain't lit!" instead. check burning the torch: if the match is lit and the torch is not lit, now the torch is lit; say "You have lit the torch." instead. extinguishing is an action applying to one thing. understand "douse [something]" or "ext [something]" or "extinguish [something]" as extinguishing. understand "put out [something]" or "put [something] out" as extinguishing. counting is an action applying to one thing. understand "count [something]" as counting. instead of counting the gold coins: say "You have [quantity] gold coins left.". carry out extinguishing the match: if the match is not lit, say "the match is already doused.". carry out extinguishing the match: if the match is lit, now the match is not lit; now the match is in the matchbox; say "You douse the match and it evaporates into the ether.". carry out extinguishing the torch: if the torch is not lit, say "the torch is already extinguished.". carry out extinguishing the torch: if the torch is lit, now the torch is not lit; say "You extinguish the torch.". test me with "open box/take match/strike match/light torch/douse match/ take match/count matches/put match in matchbox/take match/strike match/ put match in matchbox".